package com.atguigu.structure.facade;

public class Screen {
    private static Screen screen=new Screen();

    public static Screen getInstance(){
        return Screen.screen;
    }

    public void open(){
        System.out.println(this.getClass().getSimpleName()+" "+Thread.currentThread().getStackTrace()[1].getMethodName());
    }

    public void close(){
        System.out.println(this.getClass().getSimpleName()+" "+Thread.currentThread().getStackTrace()[1].getMethodName());
    }
}
